<?php
$options = array(
	'flv' => $this->baseUrl() . '/' . $this->row['media'],
	'title' => $this->row['name'],
	'showiconplay' => 1,
	'showfullscreen' => 1,
	'showvolume' => 1,
	'showstop' => 1,
	'startimage' => $this->baseUrl() . '/upload/media/big_crop/' . $this->row['image'],
);

/* @var $htmlFlash Zend_View_Helper_HtmlFlash */
$htmlFlash = $this->getHelper('HtmlFlash');

$data = 'flash/flv-player/player_flv_maxi.swf';
$attribs = array(
	'width' => '420',
	'height' => '315'
);

$params = array(
	'movie' => $data,
	'FlashVars' => http_build_query($options)
);

$content = 'Masz wyłączoną obsługę języka JavaScript lub używasz starej wersji odtwarzacza Flash Player firmy Adobe. <a href="http://get.adobe.com/flashplayer/">Pobierz najnowszy odtwarzacz Flash</a>.';
?>
<dl class="kx_gallery_movie kx_display">
	<dd class="kx_content">
		<div class="kx_head">
			<h1 class="kx_title"><?php print $this->row['name']?></h1>
	
			<?php if (count($site = $this->urlParams('fromSite'))):?>
				<a class="kx_back" href="<?php print $this->url(array('alias'=>$site['alias']),'site',true)?>">&laquo; powrót do strony <em><?php print $this->escape($site['name'])?></em></a>
			<?php else:?>
				<a class="kx_back" href="<?php print $this->url(array('action' => 'index','controller'=>'gallery','module'=>'gallery'),'default',true);?>">&laquo; powrót do spisu galerii</a>
			<?php endif;?>
		</div>

		<div class="kx_main kx_flash">
			<?php print $htmlFlash->htmlFlash($data, $attribs, $params, $content);?>
		</div>
	
		<?php if (strlen($this->row['description'])):?>
		<div class="kx_description">
			<?php print $this->renderer($this->row['description'])->render()?>
		</div>
		<?php endif;?>
	</dd>
</dl>